/**
 * author: wancheng
 * date: 2018/08/1
 * des: 待我审批
 *
 */


/**
 * 休假的详情
 */
export const vacationDetailSetting = [{
  field: 'applyName',
  title: '申请名称',
  type: 'text',
  disableEdit: true
},
{
  field: 'employeeName',
  title: '申请人',
  type: 'text',
  disableEdit: true
},

{
  field: 'employeeNo',
  title: '员工号',
  type: 'text',
  disableEdit: true
},
{
  field: 'orgId',
  title: '所属部门',
  type: 'org',
  disableEdit: true
},
{
  field: 'position',
  title: '岗位',
  type: 'text',
  disableEdit: true
},
{
  field: 'vacationStartDate',
  title: '请假开始日期',
  type: 'date-time',
  disableEdit: true
},
{
  field: 'vacationEndDate',
  title: '请假结束日期',
  type: 'date-time',
  disableEdit: true
},
{
  field: 'vacationType',
  title: '请假类型',
  disableEdit: true,
  type: 'selected',
  isParams: true, // 默认为false，当isParams 为true 时，下拉数据为参数类型，
  paramsId: 'VACATION'
},
{
  field: 'vacationDays',
  title: '请假天数',
  type: 'text',
  disableEdit: true
},
{
  field: 'applyReasion',
  title: '申请原因',
  type: 'text',
  disableEdit: true
}
]


/**
 * 休假申请审批set
 */
export const vacationApproveSetting = [{
  field: 'applyName',
  title: '申请名称',
  type: 'text',
  disableEdit: true
},
{
  field: 'employeeName',
  title: '申请人',
  type: 'text',
  disableEdit: true
},
{
  field: 'employeeNo',
  title: '员工号',
  type: 'text',
  disableEdit: true
},
{
  field: 'orgId',
  title: '所属部门',
  type: 'org',
  disableEdit: true
},
{
  field: 'position',
  title: '岗位',
  type: 'text',
  disableEdit: true
},
{
  field: 'vacationStartDate',
  title: '请假开始日期',
  type: 'date-time',
  disableEdit: true
},
{
  field: 'vacationEndDate',
  title: '请假结束日期',
  type: 'date-time',
  disableEdit: true
},
{
  field: 'vacationType',
  title: '请假类型',
  disableEdit: true,
  type: 'selected',
  isParams: true, // 默认为false，当isParams 为true 时，下拉数据为参数类型，
  paramsId: 'VACATION'
},
{
  field: 'vacationDays',
  title: '请假天数',
  type: 'text',
  disableEdit: true
},
{
  field: 'applyReasion',
  title: '申请原因',
  type: 'text',
  disableEdit: true
},
{
  field: 'approvalOpinion',
  title: '审批意见',
  type: 'textarea',
  isHiden: true,
  onlyRow: true
}
]


export const setting1 = [{
  field: 'applyName',
  title: '申请名称',
  type: 'text',
  searchable: true
},
{
  field: 'employeeName',
  title: '申请人',
  type: 'text'
},
{
  field: 'vacationStartDate',
  title: '请假开始日期',
  type: 'text'
},
{
  field: 'vacationEndDate',
  title: '请假结束日期',
  type: 'text'
}, {
  field: 'vacationDays',
  title: '请假天数',
  type: 'text'
},
{
  field: 'vacationType',
  title: '请假类型',
  disableEdit: true,
  type: 'selected',
  isParams: true, // 默认为false，当isParams 为true 时，下拉数据为参数类型，
  paramsId: 'VACATION'
},
{
  field: 'statusName',
  title: '状态',
  type: 'text',
  searchable: true
}
]

/**
 * 外出申请
 */
export const setting2 = [
  {
    field: 'applyName',
    title: '申请名称',
    type: 'text',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'outsideId',
    title: '申请id',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeName',
    title: '申请人',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeNo',
    title: '员工号',
    type: 'text',
    isHiden: true,
    disableEdit: true
  },
  {
    field: 'outsideCause',
    title: '原因',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'outsideType',
    title: '出行类型',
    type: 'selected',
    isParams: true,
    paramsId: 'OUTSIDE',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'destination',
    title: '目的地',
    type: 'text',
    isHiden: true,
    hideDetail: true,
    hideEdit: true,
    disableEdit: true
  },
  {
    field: 'startDate',
    title: '请假开始日期',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'startTime',
    title: '请假开始时间',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'endDate',
    title: '请假结束日期',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'endTime',
    title: '请假结束时间',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'statusName',
    title: '状态',
    type: 'text',
    searchable: true,
    hideDetail: true,
    hideEdit: true,
    disableEdit: true
  }, {
    field: 'accompany',
    title: '陪同人',
    isUser: true,
    type: 'user-tree',
    isHiden: true
  },
  {
    field: 'attendauceVisitList',
    title: '目标客户',
    type: 'text',
    isHiden: true,
    onlyRow: true,
    disableEdit: true,
    slot: 'table'
  },
  {
    field: 'approvalOpinion',
    title: '审批意见',
    type: 'textarea',
    isHiden: true,
    onlyRow: true
  }
]

/**
 * 外出申请
 */
export const setting21 = [
  {
    field: 'applyName',
    title: '申请名称',
    type: 'text',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'outsideId',
    title: '申请id',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeName',
    title: '申请人',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeNo',
    title: '员工号',
    type: 'text',
    isHiden: true,
    disableEdit: true
  },
  {
    field: 'outsideCause',
    title: '原因',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'outsideType',
    title: '出行类型',
    type: 'selected',
    isParams: true,
    paramsId: 'OUTSIDE',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'destination',
    title: '目的地',
    type: 'text',
    isHiden: true,
    hideDetail: true,
    hideEdit: true,
    disableEdit: true
  },
  {
    field: 'startDate',
    title: '请假开始日期',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'startTime',
    title: '请假开始时间',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'endDate',
    title: '请假结束日期',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'endTime',
    title: '请假结束时间',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'statusName',
    title: '状态',
    type: 'text',
    searchable: true,
    hideDetail: true,
    hideEdit: true,
    disableEdit: true
  }, {
    field: 'accompany',
    title: '陪同人',
    isUser: true,
    type: 'user-tree',
    isHiden: true
  },
  {
    field: 'attendauceVisitList',
    title: '目标客户',
    type: 'text',
    isHiden: true,
    onlyRow: true,
    disableEdit: true,
    slot: 'table'
  }
]
/**
 * 外出的审批页面
 */
export const setting3 = [
  {
    field: 'applyName',
    title: '申请名称',
    type: 'text',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'outsideId',
    title: '申请id',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeName',
    title: '申请人',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeNo',
    title: '员工号',
    type: 'text',
    isHiden: true,
    disableEdit: true
  },
  {
    field: 'outsideCause',
    title: '原因',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'outsideType',
    title: '出行类型',
    type: 'selected',
    isParams: true,
    paramsId: 'OUTSIDE',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'destination',
    title: '目的地',
    type: 'text',
    isHiden: true,
    hideDetail: true,
    hideEdit: true,
    disableEdit: true
  },
  {
    field: 'startDate',
    title: '请假开始日期',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'startTime',
    title: '请假开始时间',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'endDate',
    title: '请假结束日期',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'endTime',
    title: '请假结束时间',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'statusName',
    title: '状态',
    type: 'text',
    searchable: true,
    disableEdit: true,
    hideDetail: true,
    hideEdit: true
  }, {
    field: 'accompany',
    title: '陪同人',
    isUser: true,
    type: 'user-tree',
    isHiden: true
  },
  {
    field: 'attendauceVisitList',
    title: '目标客户',
    type: 'text',
    onlyRow: true,
    disableEdit: true,
    isHiden: true,
    slot: 'table'
  },
  {
    field: 'costBeanList',
    title: '报销费用',
    type: 'text',
    onlyRow: true,
    disableEdit: true,
    isHiden: true,
    slot: 'cost'
  },
  {
    field: 'approvalOpinion',
    title: '审批意见',
    type: 'textarea',
    isHiden: true,
    onlyRow: true
  }
]

/**
 * 外出的审批页面
 */
export const setting32 = [
  {
    field: 'applyName',
    title: '申请名称',
    type: 'text',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'outsideId',
    title: '申请id',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeName',
    title: '申请人',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeNo',
    title: '员工号',
    type: 'text',
    isHiden: true,
    disableEdit: true
  },
  {
    field: 'outsideCause',
    title: '原因',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'outsideType',
    title: '出行类型',
    type: 'selected',
    isParams: true,
    paramsId: 'OUTSIDE',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'destination',
    title: '目的地',
    type: 'text',
    isHiden: true,
    hideDetail: true,
    hideEdit: true,
    disableEdit: true
  },
  {
    field: 'startDate',
    title: '请假开始日期',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'startTime',
    title: '请假开始时间',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'endDate',
    title: '请假结束日期',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'endTime',
    title: '请假结束时间',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'statusName',
    title: '状态',
    type: 'text',
    searchable: true,
    disableEdit: true,
    hideDetail: true,
    hideEdit: true
  }, {
    field: 'accompany',
    title: '陪同人',
    isUser: true,
    type: 'user-tree',
    isHiden: true
  },
  {
    field: 'attendauceVisitList',
    title: '目标客户',
    type: 'text',
    onlyRow: true,
    disableEdit: true,
    isHiden: true,
    slot: 'table'
  },
  {
    field: 'costBeanList',
    title: '报销费用',
    type: 'text',
    onlyRow: true,
    disableEdit: true,
    isHiden: true,
    slot: 'cost'
  }
]
/**
 * 目标客户
 */
export const customer = [{
  field: 'flag',
  title: '客户标志',
  type: 'selected',
  isParams: true,
  isHiden: true,
  paramsId: 'customer_flag'
},
{
  field: 'cusNo',
  title: '客户号',
  type: 'text'
},
{
  field: 'cusName',
  title: '客户名称',
  type: 'text'
},
{
  field: 'cusLinkman',
  title: '联系人',
  type: 'text'
},
{
  field: 'linkmanTel',
  title: '联系人电话',
  type: 'text'
},
{
  field: 'cusAddr',
  title: '地址',
  type: 'text'
},
{
  field: 'remarks',
  title: '备注',
  type: 'text'
}
]

/**
 * 报销费用
 */
export const costSetting = [{
  field: 'costDate',
  title: '时间',
  type: 'date'
},
{
  field: 'costType',
  title: '费用类型',
  type: 'selected',
  isParams: true,
  paramsId: 'COSTTYPE'
},
{
  field: 'cost',
  title: '费用',
  type: 'text'
},
{
  field: 'remarks',
  title: '备注',
  type: 'text'
}
]





export const visitListSetting = [
  {
    field: 'applyName',
    title: '申请名称',
    type: 'text',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'outsideId',
    title: '申请id',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeName',
    title: '申请人',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeNo',
    title: '员工号',
    type: 'text',
    isHiden: true,
    disableEdit: true
  },
  {
    field: 'outsideCause',
    title: '原因',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'outsideType',
    title: '出行类型',
    type: 'selected',
    isParams: true,
    paramsId: 'OUTSIDE',
    searchable: true,
    disableEdit: true
  },

  {
    field: 'startDate',
    title: '开始日期',
    type: 'date',
    disableEdit: true,
    searchable: true
  },
  {
    field: 'startTime',
    title: '开始时间',
    type: 'time',
    disableEdit: true,
    isHiden: true
  },
  {
    field: 'endDate',
    title: '结束日期',
    type: 'date',
    disableEdit: true,
    searchable: true
  },
  {
    field: 'endTime',
    title: '结束时间',
    disableEdit: true,
    type: 'time'
  },
  {
    field: 'statusName',
    title: '状态',
    type: 'text',
    searchable: true,
    disableEdit: true,
    hideDetail: true,
    hideEdit: true
  }, {
    field: 'accompany',
    title: '陪同人',
    isUser: true,
    type: 'user-tree',
    isHiden: true
  }, {
    field: 'approvalOpinion',
    title: '审批意见',
    type: 'textarea',
    isHiden: true,
    onlyRow: true
  }
]



export const visitListSetting2 = [
  {
    field: 'applyName',
    title: '申请名称',
    type: 'text',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'outsideId',
    title: '申请id',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeName',
    title: '申请人',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeNo',
    title: '员工号',
    type: 'text',
    isHiden: true,
    disableEdit: true
  },
  {
    field: 'outsideCause',
    title: '原因',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'outsideType',
    title: '出行类型',
    type: 'selected',
    isParams: true,
    paramsId: 'OUTSIDE',
    searchable: true,
    disableEdit: true
  },

  {
    field: 'startDate',
    title: '开始日期',
    type: 'date',
    disableEdit: true,
    searchable: true
  },
  {
    field: 'startTime',
    title: '开始时间',
    type: 'time',
    disableEdit: true,
    isHiden: true
  },
  {
    field: 'endDate',
    title: '结束日期',
    type: 'date',
    disableEdit: true,
    searchable: true
  },
  {
    field: 'endTime',
    title: '结束时间',
    disableEdit: true,
    type: 'time'
  },
  {
    field: 'statusName',
    title: '状态',
    type: 'text',
    searchable: true,
    disableEdit: true,
    hideDetail: true,
    hideEdit: true
  }, {
    field: 'accompany',
    title: '陪同人',
    isUser: true,
    type: 'user-tree',
    isHiden: true
  }
]
/**
 * 拜访客户的审批页面
 */
export const visitApproveListSetting = [
  {
    field: 'applyName',
    title: '申请名称',
    type: 'text',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'outsideId',
    title: '申请id',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeName',
    title: '申请人',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'employeeNo',
    title: '员工号',
    type: 'text',
    isHiden: true,
    disableEdit: true
  },
  {
    field: 'outsideCause',
    title: '原因',
    type: 'text',
    disableEdit: true
  },
  {
    field: 'outsideType',
    title: '出行类型',
    type: 'selected',
    isParams: true,
    paramsId: 'OUTSIDE',
    searchable: true,
    disableEdit: true
  },
  {
    field: 'workDetail',
    title: '工作开展情况',
    disableEdit: true,
    type: 'text'
  }, {
    field: 'accompany',
    title: '陪同人',
    isUser: true,
    type: 'user-tree',
    isHiden: true
  },
  {
    field: 'statusName',
    title: '状态',
    type: 'text',
    searchable: true,
    disableEdit: true,
    hideDetail: true,
    hideEdit: true
  }, {
    field: 'approvalOpinion',
    title: '审批意见',
    type: 'textarea',
    disableEdit: true,
    isHiden: true,
    onlyRow: true
  }
]



export const addrSetting = [{
  field: 'id',
  title: 'id',
  type: 'text',
  hideDetail: true,
  hideEdit: true,
  isHiden: true,
},
{
  field: 'addrName',
  title: '目的地名称',
  type: 'text'
},
{
  field: 'addr',
  title: '详细地址',
  type: 'text'
},
{
  field: 'remarks',
  title: '备注',
  type: 'text'
}, {
  field: 'flag',
  title: '标志',
  type: 'text',
  isHiden: true,
  hideDetail: true,
  hideEdit: true
}
]
